import request from '@/utils/request'

export function getTypeTree(data = {}) {
  return request({
    url: '/eflow/work-event/typeTree',
    method: 'get',
    params: data
  })
}

export function createTypeTree(data = {}) {
  return request({
    url: '/eflow/work-event/typeCreate',
    method: 'post',
    data
  })
}

export function updateTypeTree(data = {}) {
  return request({
    url: '/eflow/work-event/typeUpdate',
    method: 'post',
    data
  })
}